package com.example.tsbs;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;

@SpringBootApplication(exclude = {SecurityAutoConfiguration.class })
public class StartApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(StartApplication.class, args);
        //返回Java虚拟机中的堆内存总量
        long xmsMemory = Runtime.getRuntime().totalMemory()/ 1024 / 1024;
        //返回Java虚拟机中使用的最大堆内存
        long xmxMemory = Runtime.getRuntime().maxMemory()/1024 /1024;
        System.out.println("-Xms:"+xmsMemory + "M");
        System.out.println("-Xmx:"+ xmxMemory + "M");
    }

}

//    GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'newpower' WITH GRANT OPTION;
